﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
    public class 仪器安装分离力测试多媒体记录表 : TableBase
    {

        public 仪器安装分离力测试多媒体记录表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string fisrtDrawingNum, string firstDrawingName, string productNum, string paramCode)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
            FisrtDrawingNum = fisrtDrawingNum;
            FirstDrawingName = firstDrawingName;
            ProductNum = productNum;
            ParamCode = paramCode;

        }
        public override string FormName { get; protected set; } = "仪器安装分离力测试多媒体记录表";

        #region A4
        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "产品型号/代号";
        public override bool FisrtDrawingNum_Show { get; protected set; } = true;
        #endregion
        #region A5
        public override string FirstDrawingName_DisplayName { get; protected set; } = "名称";
        public override bool FirstDrawingName_Show { get; protected set; } = true;
        #endregion
        #region A8
        public override string ProductNum_DisplayName { get; protected set; } = "产品编号";
        public override bool ProductNum_Show { get; protected set; } = true;
        #endregion
        #region A17
        public override string ParamCode_DisplayName { get; protected set; } = "参数代号";
        public override bool ParamCode_Show { get; protected set; } = true;
        #endregion
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity, string measuredValues)
        {
            entity.SetFirstMeasuredValues(measuredValues, "实测值", true, true, 0);
            return entity;
        }
        public MultiMediaEntity SetMultiMedia(MultiMediaEntity entity, string photoNo)
        {
            entity.SetMultiMedia(photoNo, "多媒体", true, true, 0);

            return entity;
        }
        /// <summary>
        /// 三检
        /// </summary>
        public InspectionSignatureEntity SetInspectionSignature(InspectionSignatureEntity entity)
        {
            entity.InspectionSignatureName = "三检";
            entity.SetFirstOperator(null, "记录者", true, true, 0, null, "记录者操作时间", true, true, 0);
            entity.SetSecondOperator(null, "确认者", true, true, 0, null, "确认者操作时间", true, true, 0);
            entity.SetThirdOperator(null, "检验员", true, true, 0, null, "检验员操作时间", true, true, 0);
            return entity;
        }
    }
}
